<?php
/**
 * Created by PhpStorm.
 * User: Mr.Li<LHB2002@qq.com>
 * Date: 2017-09-27
 * Time: 15:14
 */


require_once 'Resolution/Autoloader.php';
$path = parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH);
$path = substr($path,1);


$style = $_REQUEST['style'];
$screen_width = isset($_COOKIE['screen_width'])?$_COOKIE['screen_width']:1024;
$screen_height = isset($_COOKIE['screen_height'])?$_COOKIE['screen_height']:1024;
$r = new \Resolution\Resolution($path,$style,array('width'=>$screen_width,'height'=>$screen_height));